UkrSolution\BarcodeScanner\API\actions\CartScannerActions D

Total Complexity 550
Dependencies 18
Dependents 3
Total lines 1,949
Lines of code 1,474
Logical lines of code 968
Comment lines 0
Methods 30
Properties 12

Methods 30

Method Rating Maintainability Complexity Lines of code
orderCreate()
D
0
149 378
getCartDetails()
D
10
95 266
addItemToCart()
D
29 38 111
addItem()
D
31 38 89
initCoupon()
C
37 27 64
updateQuantity()
C
36 26 68
cartRecalculate()
B
32 21 94
findProductInCart()
B
44 24 40
setOrderTotal()
B
45 23 35
getTaxAddress()
B
45 21 34
getDiscountPrice()
A
44 14 47
updateAttributes()
A
49 10 28
getWcCheckoutErrors()
A
56 8 18
getCartRecords()
S
51 7 24
getStatuses()
S
54 7 22
updateOrderExtraData()
S
59 6 12
formatPriceForUpdate()
S
56 5 19
getCartItems()
S
56 5 18
cartClear()
S
53 4 22
getVariations()
S
60 4 13
removeItem()
S
58 2 15
resetCustomPrices()
S
64 3 9
updateOrderCustomPrices()
S
64 3 9
conditionally_send_wc_email()
S
66 2 9
cleanObOutput()
S
70 2 6
updateOrderExtraDataField()
S
62 2 10
wcSession()
S
91 1 2
getWcErrors()
S
82 1 3
initFieldPrice()
S
79 1 3
changeQuantityInCart()
S
69 1 6